package com.scut.miaosha.vo;

import com.scut.miaosha.validator.IsMoible;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

public class LoginVo {
    @NotNull
    @IsMoible
    private String mobile;

    @NotNull
    @Length(min=32)   //限定密码的长度：最小值是32
    private String password;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString()
    {
        String res = "mobile = " + this.mobile + "  " + "password = " + this.password;
        return res;
    }
}
